
// import B from './moduleB.js'


import B, { person, f } from './moduleB.js'
console.log(B)
console.log(f)
console.log(person)


/*
// 导入所有的模块
import * as moduleA from './moduleA.js'
console.log(moduleA)
console.log(moduleA.phone)
console.log(moduleA.l + moduleA.f)

不利于 按需加载
*/


/*
import {
  f as firstName,
  l as lastName,
  sayHi,
  phone
} from './moduleA.js'
// import { phone } from './moduleA.js'

console.log(phone)
console.log(firstName + lastName)
console.log(sayHi)
sayHi()*/




/*
* CommonJS
* AMD
*
*
* ES6模块
* export 指定输出，规定模块的对外接口
* import 指定输入，输入其他模块提供的功能
* */










